home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / BetterADsecurity.sit / Better AD security / Source / info.cpp < prev    next >
C/C++ Source or Header  |  1996-06-21  |  540b  |  27 lines

  1. #include <iostream.h>
  2. #include "bADs Constants.h"
  3.  
  4. #pragma options align=mac68k
  5. typedef struct {
  6.     long            magicNumber;
  7.     long            versionNumber;
  8.     ProcPtr            theTable[2];
  9. } ESAddressTable;
  10. #pragma options align=reset
  11.  
  12.  
  13. void main(void)
  14. {
  15.  
  16.     ESAddressTable        *theAddressTable;
  17.     long                oldAddr;
  18.  
  19.     Gestalt(kbADsAddressTable, (long *) &theAddressTable);        
  20.     oldAddr = (long) theAddressTable->theTable[kNewSysError];
  21.     
  22.     cout << "The address table: " << hex << (long) theAddressTable << endl;
  23.     
  24.     cout << "The old SysError: " << hex << oldAddr << endl;
  25. }
  26.  
  27.